﻿using System;

using DanielVaughan.PhoneTaskModel;
using DanielVaughan.InversionOfControl;

using Microsoft.Phone.Tasks;

namespace DanielVaughan.PhoneTasks
{
	/* TODO: [DV] Comment. */
	public class MarketplaceReviewTaskAdapter : TaskAdapter, IMarketplaceReviewTask
	{
		[InjectDependencies]
		public MarketplaceReviewTaskAdapter() : this(null)
		{
			/* Intentionally left blank. */
		}

		public MarketplaceReviewTaskAdapter(Action showAction = null) 
			: base(delegate
					{
						var task = new MarketplaceReviewTask();
						task.Show();
						if (showAction != null)
						{
							showAction();
						}
					})
		{
			/* Intentionally left blank. */
		}
	}
}
